package com.jn.erp.web.api.course.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 课程类型
 */
@Getter
@AllArgsConstructor
public enum LessonTypeEnum  {
    VIP(1, "一对一"),
    ORDINARY(2, "一对多");
    @EnumValue
    private final int code;
    @JsonValue
    private final String name;

    public int getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }
}
